import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.StringTokenizer;


public class Principal {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader(args[0]);  
        FileWriter fileWriter = new FileWriter(args[1]);
        BufferedReader bufferedReader = new BufferedReader(fileReader);
        BufferedWriter out = new BufferedWriter(fileWriter);
//        AnalisadorLexico analisadorLexico;
        
        String linha;
		while ((linha = bufferedReader.readLine()) != null) { //le linha do arquivo enquanto nao for fim do mesmo
        	StringTokenizer st = new StringTokenizer(linha); //separa a linha em tokens
        	while (st.hasMoreTokens()) { 
        		// le cada token da linha e chama o metodo do analisador lexico.
//        		analisadorLexico.lerToken(st.nextToken());
        		out.write(st.nextToken(""));
        		
        	}
		}
        out.close();
	}
}
